package com.wjf.ks_test.vo;

/**
 * @author 吴建飞
 * @version 1.0
 * @since 2024/11/11
 */
public class AdapterCircle extends Circle implements Polygon{
    public AdapterCircle(Vertex center, double radius) {
        super(center, radius);
    }

    /**
     * 圆形可视为一种特殊的多边形，这里简单返回true
     * @param vertices
     * @param otherParams
     * @return 布尔类型
     */
    @Override
    public boolean canForm(Vertex[] vertices, double[] otherParams) {
        return true;
    }

    @Override
    public void draw() {
        super.draw();
    }

    @Override
    public double calcArea() {
        return super.calcArea();
    }
}
